doctype html

div.wrapper(
    ng-controller="WikiDetailController as ctrl"
    ng-init="section='wiki'"
)
    tg-project-menu
    sidebar.menu-secondary.wiki-nav(
        ng-if="linksVisible"
        tg-wiki-nav
        ng-model="wikiLinks"
    )
    section.main.wiki
        header
            h1
                span.green(translate="PROJECT.SECTION.WIKI")
                span.project-name(tg-bo-bind="project.name")

        tg-wiki-wysiwyg(model="wiki")

        .summary.wiki-summary(
            tg-wiki-summary
            ng-model="wiki"
            ng-if="wiki.id"
        )

        tg-attachments-full(
            ng-if="wiki.id"
            obj-id="wiki.id"
            type="wiki_page",
            project-id="projectId"
            edit-permission = "modify_wiki_page"
        )

        tg-wiki-history(
            ng-if="wiki.id"
            wiki-id="wiki.id"
        )
